const { uploadPicture }= require('../utils/upload')

module.exports = {
	async uploadPic( ctx ) {
	 await uploadPicture(ctx).then( (res)=> {
			ctx.body = res
		}).catch( (err) =>{
			ctx.body = err
		})
  }
}